//
//  CCRTBaseVC.h
//  iSeal6100
//
//  Created by He Yuan on 13-1-23.
//  Copyright (c) 2013年 http://www.heyuan110.com. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol UniversalDelegate <NSObject>

@optional

-(void)didFinishAciton:(id)obj;

-(void)didFinishAciton:(id)obj withInfo:(id)info;

@end

@interface BaseVC : UIViewController

{
    __unsafe_unretained id<UniversalDelegate>universalDelegate;
}

@property (nonatomic,assign)id<UniversalDelegate>universalDelegate;

- (void)configureViews:(BOOL)animation;

@end

@interface UIViewController(BaseViewController)

-(void)setTitle:(NSString *)title showBackButton:(BOOL)showBackButton;

-(void)setBackItem;

-(void)setLeftItem:(NSString *)title;

-(void)rightBarButtonItemAction:(UIButton *)btn;

-(void)leftBarButtonItemAction:(UIButton *)btn;

-(void)setRightItem:(NSString *)title;

-(void)setRightImageItem:(NSString *)image;

-(void)loadViewController:(NSString *)viewController;

-(void)loadViewController:(NSString *)viewController hidesBottomBarWhenPushed:(BOOL)ishide;

@end